package com.bite.book.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
    @RequestMapping(value = "/t1")
    private Integer t1 (){
        int a = 1;
        return a;
    }

    @RequestMapping("/t2")
    private boolean t2 (){
        return true;
    }

    @RequestMapping(value = "/t3",produces = "appliction/json")
    private String t3 (){
        return "liangzai";
    }
}
